/**
 * Optional catch-all route that renders the home page and every other
 * user-facing page generated by Puck.
 *
 * The pipeline lives in the SDK — see createPublishedPage in
 * app/published-pages.tsx for what this route is made of.
 */

import { published } from "../published-pages";

/**
 * Backstop only: publishing calls revalidatePath for the affected routes, so
 * cached pages normally refresh the moment their content changes. This bounds
 * how long an edit made outside that path (a direct API write, a restored
 * branch) can stay stale.
 *
 * Must stay a literal here: Next.js statically analyzes segment-config exports,
 * so a value re-exported from the factory would go undetected.
 */
export const revalidate = 300;

export const generateStaticParams = published.generateStaticParams;
export const generateMetadata = published.generateMetadata;
export default published.Page;
